package com.cauli.account.menu.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Cauli
 * @date 2022-12-14 11:06:02
 * @description 角色和菜单关联
 */
@Data
@TableName("role_menu")
@ApiModel(value = "RoleMenu", description = "角色和菜单关联")
public class RoleMenu implements Serializable {
    /**
     * 角色ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId("role_id")
    private Long roleId;

    /**
     * 菜单ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "menu_id")
    private Long menuId;
}
